﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Pong
{
    class Bola
    {
        Texture2D texture;
        Vector2 position;
        Rectangle size;
        Vector2 velocity;

        public Bola(Texture2D texture, Vector2 position)//<CONSTRUTOR!!!
        {
            this.texture = texture;//AQUI
            this.position = position;//AQUI
            this.velocity = new Vector2(0, 5);//AQUI
            this.size = texture.Bounds;//AQUI
        }

        
        public void update() //update
        {
            
        }

        public void Draw(SpriteBatch spriteBatch) //desenho
        {
            spriteBatch.Draw(texture, position, Color.White);    
        }
    }
}
